package com.allbluefish.learn.thread;

import com.allbluefish.learn.model.Account;

public class AddThread implements Runnable {
	Account account;
	int amount;

	public AddThread(Account account, int amount) {
		this.account = account;
		this.amount = amount;
	}

	public void run() {
		for (int i = 0; i < 200000; i++) {
			this.account.addSync(this.amount);
		}
	}

}
